package com.webdiy.sm.impl;

import com.sys.dao.model.CodeInfo;
import com.sys.plat.service.base.BaseServiceImpl;
import com.webdiy.sm.iface.SmViewIface;

/**
 * Created by IntelliJ IDEA.
 * User: Administrator
 * Date: 2009-8-15
 * Time: 17:18:56
 * To change this template use File | Settings | File Templates.
 */
public class SmViewImpl extends BaseServiceImpl implements SmViewIface {


    public void saveCode() {
        String[] jobs = new String[49];

        jobs[0] = "";
    jobs[1] = "在校学生";
    jobs[2] = "计算机/IT业";
    jobs[3] = "互联网/网站";
    jobs[4] = "市场/销售";
    jobs[5] = "电子/通讯";
    jobs[6] = "经营管理";
    jobs[7] = "生产/营运";
    jobs[8] = "客服及技术支持";
    jobs[9] = "财务/审计/税务";
    jobs[10] = "证券/金融/投资";
    jobs[11] = "银行";
    jobs[12] = "保险";
    jobs[13] = "工业/工厂/制造";
    jobs[14] = "质量/安全管理";
    jobs[15] = "工程/机械/能源";
    jobs[16] = "服装/纺织/皮革";
    jobs[17] = "采购";
    jobs[18] = "贸易";
    jobs[19] = "物流/仓储";
    jobs[20] = "生物/化工/制药/医疗器械";
    jobs[21] = "医院/医疗/护理";
    jobs[22] = "广告";
    jobs[23] = "公关/媒介";
    jobs[24] = "市场/营销";
    jobs[25] = "影视/媒体";
    jobs[26] = "写作/出版/印刷";
    jobs[27] = "艺术/设计";
    jobs[28] = "建筑工程";
    jobs[29] = "房地产";
    jobs[30] = "物业管理";
    jobs[31] = "人力资源";
    jobs[32] = "高级管理";
    jobs[33] = "行政/后勤";
    jobs[34] = "咨询/顾问";
    jobs[35] = "律师/法务";
    jobs[36] = "教师";
    jobs[37] = "科研人员";
    jobs[38] = "餐饮/娱乐";
    jobs[39] = "酒店/旅游";
    jobs[40] = "美容/健身";
    jobs[41] = "百货/连锁/零售服务";
    jobs[42] = "交通运输服务";
    jobs[43] = "保安/家政/其他服务";
    jobs[44] = "公务员";
    jobs[45] = "翻译";
    jobs[46] = "储备干部/培训生/实习生";
    jobs[47] = "兼职";
    jobs[48] = "其他职业";

        for (int i = 0; i < jobs.length-1; i++) {
            CodeInfo ci = new CodeInfo();
            ci.setCodeName(jobs[i+1]);
            ci.setCodeNo(String.valueOf(i));
            ci.setCodeType("00003");
            ci.setNotes("QQ达人 职业");
            dao.saveObject(ci);
        }

    }
}
